<\/a><\/div>'); r.controlsContainer ? (r.controlsContainer.append(t), r.pausePlay=n("." + f + "pauseplay a", r.controlsContainer)):(r.append(t), r.pausePlay=n("." + f + "pauseplay a", r)); u.pausePlay.update(r.vars.slideshow ? f + "pause":f + "play"); r.pausePlay.bind(a, function (t){ t.preventDefault(); (s===""||s===t.type)&&(n(this).hasClass(f + "pause") ? (r.manualPause = !0, r.manualPlay = !1, r.pause()):(r.manualPause = !1, r.manualPlay = !0, r.play())); s===""&&(s=t.type); u.setToClearWatchedEvent() }) }, update: function (n){ n==="play" ? r.pausePlay.removeClass(f + "pause").addClass(f + "play").html(r.vars.playText):r.pausePlay.removeClass(f + "play").addClass(f + "pause").html(r.vars.pauseText) }}, touch: function (){ var p, w, f, u, n, s, d, b, k, l = !1, a=0, y=0, i=0; if(v){ t.style.msTouchAction="none"; t._gesture=new MSGesture; t._gesture.target=t; t.addEventListener("MSPointerDown", g, !1); t._slider=r; t.addEventListener("MSGestureChange", nt, !1); t.addEventListener("MSGestureEnd", tt, !1); function g(n){ n.stopPropagation(); r.animating ? n.preventDefault():(r.pause(), t._gesture.addPointer(n.pointerId), i=0, u=h ? r.h:r.w, s=Number(new Date), f=e&&o && r.animatingTo===r.last ? 0:e&&o ? r.limit - (r.itemW + r.vars.itemMargin) * r.move * r.animatingTo:e&&r.currentSlide===r.last ? r.limit:e ? (r.itemW + r.vars.itemMargin) * r.move * r.currentSlide:o ? (r.last - r.currentSlide + r.cloneOffset) * u:(r.currentSlide + r.cloneOffset) * u) } function nt(r){ var e, o, a; if(r.stopPropagation(), e=r.target._slider, e){ if(o=-r.translationX, a=-r.translationY, i=i + (h ? a:o), n=i, l=h ? Math.abs(i) < Math.abs(-o):Math.abs(i) < Math.abs(-a), r.detail===r.MSGESTURE_FLAG_INERTIA){ setImmediate(function (){ t._gesture.stop() });return } (!l||Number(new Date) - s > 500)&&(r.preventDefault(), !c&&e.transitions&&(e.vars.animationLoop||(n=i / (e.currentSlide===0&&i < 0||e.currentSlide===e.last&&i > 0 ? Math.abs(i) / u + 2:1)), e.setProps(f + n, "setTouch"))) }} function tt(t){ var r, e, h; (t.stopPropagation(), r=t.target._slider, r)&&(r.animatingTo!==r.currentSlide||l || n===null||(e=o ? -n:n, h=e > 0 ? r.getTarget("next"):r.getTarget("prev"), r.canAdvance(h)&&(Number(new Date) - s < 550&&Math.abs(e) > 50||Math.abs(e) > u / 2) ? r.flexAnimate(h, r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide, r.vars.pauseOnAction, !0)), p=null, w=null, n=null, f=null, i=0) }} else d=function (n){ r.animating ? n.preventDefault():(window.navigator.msPointerEnabled||n.touches.length===1)&&(r.pause(), u=h ? r.h:r.w, s=Number(new Date), a=n.touches[0].pageX, y=n.touches[0].pageY, f=e&&o && r.animatingTo===r.last ? 0:e&&o ? r.limit - (r.itemW + r.vars.itemMargin) * r.move * r.animatingTo:e&&r.currentSlide===r.last ? r.limit:e ? (r.itemW + r.vars.itemMargin) * r.move * r.currentSlide:o ? (r.last - r.currentSlide + r.cloneOffset) * u:(r.currentSlide + r.cloneOffset) * u, p=h ? y:a, w=h ? a:y, t.addEventListener("touchmove", b, !1), t.addEventListener("touchend", k, !1)) }, b=function (t){ a=t.touches[0].pageX; y=t.touches[0].pageY; n=h ? p - y:p - a; l=h ? Math.abs(n) < Math.abs(a - w):Math.abs(n) < Math.abs(y - w); (!l||Number(new Date) - s > 500)&&(t.preventDefault(), !c&&r.transitions&&(r.vars.animationLoop||(n=n / (r.currentSlide===0&&n < 0||r.currentSlide===r.last&&n > 0 ? Math.abs(n) / u + 2:1)), r.setProps(f + n, "setTouch"))) }, k=function (){ if(t.removeEventListener("touchmove", b, !1), r.animatingTo===r.currentSlide&&!l&&!(n===null)){ var i=o ? -n:n, e=i > 0 ? r.getTarget("next"):r.getTarget("prev"); r.canAdvance(e)&&(Number(new Date) - s < 550&&Math.abs(i) > 50||Math.abs(i) > u / 2) ? r.flexAnimate(e, r.vars.pauseOnAction):c||r.flexAnimate(r.currentSlide, r.vars.pauseOnAction, !0) } t.removeEventListener("touchend", k, !1); p=null; w=null; n=null; f=null }, t.addEventListener("touchstart", d, !1) }, resize: function (){ !r.animating&&r.is(":visible")&&(e||r.doMath(), c ? u.smoothHeight():e ? (r.slides.width(r.computedW), r.update(r.pagingCount), r.setProps()):h ? (r.viewport.height(r.h), r.setProps(r.h, "setTotal")):(r.vars.smoothHeight&&u.smoothHeight(), r.newSlides.width(r.computedW), r.setProps(r.computedW, "setTotal"))) }, smoothHeight: function (n){ if(!h||c){ var t=c ? r:r.viewport; n ? t.animate({ height: r.slides.eq(r.animatingTo).height() }, n):t.height(r.slides.eq(r.animatingTo).height()) }}, sync: function (t){ var i=n(r.vars.sync).data("flexslider"), u=r.animatingTo; switch (t){ case "animate": i.flexAnimate(u, r.vars.pauseOnAction, !1, !0); break; case "play": i.playing||i.asNav||i.play(); break; case "pause": i.pause() }}, uniqueID: function (t){ return t.filter("[id]").add(t.find("[id]")).each(function (){ var t=n(this); t.attr("id", t.attr("id") + "_clone") }), t }, pauseInvisible: { visProp: null, init: function (){ var n=u.pauseInvisible.getHiddenProp(), t; n&&(t=n.replace(/[H|h]idden/, "") + "visibilitychange", document.addEventListener(t, function (){ u.pauseInvisible.isHidden() ? r.startTimeout ? clearTimeout(r.startTimeout):r.pause():r.started ? r.play():r.vars.initDelay > 0 ? setTimeout(r.play, r.vars.initDelay):r.play() })) }, isHidden: function (){ var n=u.pauseInvisible.getHiddenProp(); return n ? document[n]:!1 }, getHiddenProp: function (){ var t=["webkit", "moz", "ms", "o"], n; if("hidden" in document) return "hidden"; for (n=0; n < t.length; n++) if(t[n] + "Hidden" in document) return t[n] + "Hidden"; return null }}, setToClearWatchedEvent: function (){ clearTimeout(p); p=setTimeout(function (){ s="" }, 3e3) }}; r.flexAnimate=function (t, i, s, a, v){ var w, p, d, b, k; if(r.vars.animationLoop||t===r.currentSlide||(r.direction=t > r.currentSlide ? "next":"prev"), l&&r.pagingCount===1&&(r.direction=r.currentItem < t ? "next":"prev"), !r.animating&&(r.canAdvance(t, v)||s)&&r.is(":visible")){ if(l&&a) if(w=n(r.vars.asNavFor).data("flexslider"), r.atEnd=t===0||t===r.count - 1, w.flexAnimate(t, !0, !1, !0, v), r.direction=r.currentItem < t ? "next":"prev", w.direction=r.direction, Math.ceil((t + 1) / r.visible) - 1!==r.currentSlide&&t!==0) r.currentItem=t, r.slides.removeClass(f + "active-slide").eq(t).addClass(f + "active-slide"), t=Math.floor(t / r.visible); else return r.currentItem=t, r.slides.removeClass(f + "active-slide").eq(t).addClass(f + "active-slide"), !1; r.animating = !0; r.animatingTo=t; i&&r.pause(); r.vars.before(r); r.syncExists&&!v&&u.sync("animate"); r.vars.controlNav&&u.controlNav.active(); e||r.slides.removeClass(f + "active-slide").eq(t).addClass(f + "active-slide"); r.atEnd=t===0||t===r.last; r.vars.directionNav&&u.directionNav.update(); t===r.last&&(r.vars.end(r), r.vars.animationLoop||r.pause()); c ? y ? (r.slides.eq(r.currentSlide).css({ opacity: 0, zIndex: 1 }), r.slides.eq(t).css({ opacity: 1, zIndex: 2 }), r.wrapup(p)):(r.slides.eq(r.currentSlide).css({ zIndex: 1 }).animate({ opacity: 0 }, r.vars.animationSpeed, r.vars.easing), r.slides.eq(t).css({ zIndex: 2 }).animate({ opacity: 1 }, r.vars.animationSpeed, r.vars.easing, r.wrapup)):(p=h ? r.slides.filter(":first").height():r.computedW, e ? (d=r.vars.itemMargin, k=(r.itemW + d) * r.move * r.animatingTo, b=k > r.limit&&r.visible!==1 ? r.limit:k):b=r.currentSlide===0&&t===r.count - 1&&r.vars.animationLoop&&r.direction!=="next" ? o ? (r.count + r.cloneOffset) * p:0 : r.currentSlide===r.last&&t===0&&r.vars.animationLoop&&r.direction!=="prev" ? o ? 0:(r.count + 1) * p:o ? (r.count - 1 - t + r.cloneOffset) * p:(t + r.cloneOffset) * p, r.setProps(b, "", r.vars.animationSpeed), r.transitions ? (r.vars.animationLoop&&r.atEnd||(r.animating = !1, r.currentSlide=r.animatingTo), r.container.unbind("webkitTransitionEnd transitionend"), r.container.bind("webkitTransitionEnd transitionend", function (){ clearTimeout(r.ensureAnimationEnd); r.wrapup(p) }), clearTimeout(r.ensureAnimationEnd), r.ensureAnimationEnd=setTimeout(function (){ r.wrapup(p) }, r.vars.animationSpeed + 100)):r.container.animate(r.args, r.vars.animationSpeed, r.vars.easing, function (){ r.wrapup(p) })); r.vars.smoothHeight&&u.smoothHeight(r.vars.animationSpeed) }}; r.wrapup=function (n){ c||e || (r.currentSlide===0&&r.animatingTo===r.last&&r.vars.animationLoop ? r.setProps(n, "jumpEnd"):r.currentSlide===r.last&&r.animatingTo===0&&r.vars.animationLoop&&r.setProps(n, "jumpStart")); r.animating = !1; r.currentSlide=r.animatingTo; r.vars.after(r) }; r.animateSlides=function (){ !r.animating&&w && r.flexAnimate(r.getTarget("next")) }; r.pause=function (){ clearInterval(r.animatedSlides); r.animatedSlides=null; r.playing = !1; r.vars.pausePlay&&u.pausePlay.update("play"); r.syncExists&&u.sync("pause") }; r.play=function (){ r.playing&&clearInterval(r.animatedSlides); r.animatedSlides=r.animatedSlides||setInterval(r.animateSlides, r.vars.slideshowSpeed); r.started=r.playing = !0; r.vars.pausePlay&&u.pausePlay.update("pause"); r.syncExists&&u.sync("play") }; r.stop=function (){ r.pause(); r.stopped = !0 }; r.canAdvance=function (n, t){ var i=l ? r.pagingCount - 1:r.last; return t ? !0:l&&r.currentItem===r.count - 1&&n===0&&r.direction==="prev" ? !0:l&&r.currentItem===0&&n===r.pagingCount - 1&&r.direction!=="next" ? !1:n===r.currentSlide&&!l ? !1:r.vars.animationLoop ? !0:r.atEnd&&r.currentSlide===0&&n===i&&r.direction!=="next" ? !1:r.atEnd&&r.currentSlide===i&&n===0&&r.direction==="next" ? !1:!0 }; r.getTarget=function (n){ return r.direction=n, n==="next" ? r.currentSlide===r.last ? 0:r.currentSlide + 1:r.currentSlide===0 ? r.last:r.currentSlide - 1 }; r.setProps=function (n, t, i){ var u=function (){ var i=n ? n:(r.itemW + r.vars.itemMargin) * r.move * r.animatingTo, u=function (){ if(e) return t==="setTouch" ? n:o&&r.animatingTo===r.last ? 0:o ? r.limit - (r.itemW + r.vars.itemMargin) * r.move * r.animatingTo:r.animatingTo===r.last ? r.limit:i; switch (t){ case "setTotal": return o ? (r.count - 1 - r.currentSlide + r.cloneOffset) * n:(r.currentSlide + r.cloneOffset) * n; case "setTouch": return o ? n:n; case "jumpEnd": return o ? n:r.count * n; case "jumpStart": return o ? r.count * n:n; default: return n }}(); return Math.floor(u) * -1 + "px" }(); r.transitions&&(u=h ? "translate3d(0," + u + ",0)":"translate3d(" + u + ",0,0)", i=i!==undefined ? i / 1e3 + "s":"0s", r.container.css("-" + r.pfx + "-transition-duration", i), r.container.css("transition-duration", i)); r.args[r.prop]=u; (r.transitions||i===undefined)&&r.container.css(r.args); r.container.css("transform", u) }; r.setup=function (t){ if(c) r.slides.css({ width: "100%", float: "left", marginRight: "-100%", position: "relative" }), t==="init"&&(y ? r.slides.css({ opacity: 0, display: "block", webkitTransition: "opacity " + r.vars.animationSpeed / 1e3 + "s ease", zIndex: 1 }).eq(r.currentSlide).css({ opacity: 1, zIndex: 2 }):r.vars.fadeFirstSlide==!1 ? r.slides.css({ opacity: 0, display: "block", zIndex: 1 }).eq(r.currentSlide).css({ zIndex: 2 }).css({ opacity: 1 }):r.slides.css({ opacity: 0, display: "block", zIndex: 1 }).eq(r.currentSlide).css({ zIndex: 2 }).animate({ opacity: 1 }, r.vars.animationSpeed, r.vars.easing)), r.vars.smoothHeight&&u.smoothHeight(); else { var i, s; t==="init"&&(r.viewport=n('<\/div>').css({ overflow: "hidden", position: "relative" }).appendTo(r).append(r.container), r.cloneCount=0, r.cloneOffset=0, o&&(s=n.makeArray(r.slides).reverse(), r.slides=n(s), r.container.empty().append(r.slides))); r.vars.animationLoop&&!e&&(r.cloneCount=2, r.cloneOffset=1, t!=="init"&&r.container.find(".clone").remove(), r.container.append(u.uniqueID(r.slides.first().clone().addClass("clone")).attr("aria-hidden", "true")).prepend(u.uniqueID(r.slides.last().clone().addClass("clone")).attr("aria-hidden", "true"))); r.newSlides=n(r.vars.selector, r); i=o ? r.count - 1 - r.currentSlide + r.cloneOffset:r.currentSlide + r.cloneOffset; h&&!e ? (r.container.height((r.count + r.cloneCount) * 200 + "%").css("position", "absolute").width("100%"), setTimeout(function (){ r.newSlides.css({ display: "block" });r.doMath(); r.viewport.height(r.h); r.setProps(i * r.h, "init") }, t==="init" ? 100:0)):(r.container.width((r.count + r.cloneCount) * 200 + "%"), r.setProps(i * r.computedW, "init"), setTimeout(function (){ r.doMath(); r.newSlides.css({ width: r.computedW, float: "left", display: "block" });r.vars.smoothHeight&&u.smoothHeight() }, t==="init" ? 100:0)) } e||r.slides.removeClass(f + "active-slide").eq(r.currentSlide).addClass(f + "active-slide"); r.vars.init(r) }; r.doMath=function (){ var f=r.slides.first(), n=r.vars.itemMargin, t=r.vars.minItems, u=r.vars.maxItems; r.w=r.viewport===undefined ? r.width():r.viewport.width(); r.h=f.height(); r.boxPadding=f.outerWidth() - f.width(); e ? (r.itemT=r.vars.itemWidth + n, r.minW=t ? t * r.itemT:r.w, r.maxW=u ? u * r.itemT - n:r.w, r.itemW=r.minW > r.w ? (r.w - n * (t - 1)) / t:r.maxW < r.w ? (r.w - n * (u - 1)) / u:r.vars.itemWidth > r.w ? r.w:r.vars.itemWidth, r.visible=i.numItems, r.move=r.vars.move > 0&&r.vars.move < r.visible ? r.vars.move:r.visible, r.pagingCount=Math.ceil((r.count - r.visible) / r.move) + 1, r.last=r.pagingCount - 1, r.limit=r.pagingCount===1 ? 0:r.vars.itemWidth > r.w ? r.itemW * (r.count - 1) + n * (r.count - 1):(r.itemW + n) * r.count - r.w - n):(r.itemW=r.w, r.pagingCount=r.count, r.last=r.count - 1); r.computedW=r.itemW - r.boxPadding }; r.update=function (n, t){ r.doMath(); e||(n < r.currentSlide ? r.currentSlide +=1:n <=r.currentSlide&&n!==0&&(r.currentSlide -=1), r.animatingTo=r.currentSlide); r.vars.controlNav&&!r.manualControls&&(t==="add"&&!e||r.pagingCount > r.controlNav.length ? u.controlNav.update("add"):(t==="remove"&&!e||r.pagingCount < r.controlNav.length)&&(e&&r.currentSlide > r.last&&(r.currentSlide -=1, r.animatingTo -=1), u.controlNav.update("remove", r.last))); r.vars.directionNav&&u.directionNav.update() }; r.addSlide=function (t, i){ var u=n(t); r.count +=1; r.last=r.count - 1; h&&o ? i!==undefined ? r.slides.eq(r.count - i).after(u):r.container.prepend(u):i!==undefined ? r.slides.eq(i).before(u):r.container.append(u); r.update(i, "add"); r.slides=n(r.vars.selector + ":not(.clone)", r); r.setup(); r.vars.added(r) }; r.removeSlide=function (t){ var i=isNaN(t) ? r.slides.index(n(t)):t; r.count -=1; r.last=r.count - 1; isNaN(t) ? n(t, r.slides).remove():h&&o ? r.slides.eq(r.last).remove():r.slides.eq(t).remove(); r.doMath(); r.update(i, "remove"); r.slides=n(r.vars.selector + ":not(.clone)", r); r.setup(); r.vars.removed(r) }; u.init() }; n(window).blur(function (){ focused = !1 }).focus(function (){ focused = !0 });n.flexslider.defaults={ namespace: "flex-", selector: ".slides > li", animation: "fade", easing: "swing", direction: "horizontal", reverse: !1, animationLoop: !0, smoothHeight: !1, startAt: 0, slideshow: !0, slideshowSpeed: 7e3, animationSpeed: 600, initDelay: 0, randomize: !1, fadeFirstSlide: !0, thumbCaptions: !1, numItems: 1, pauseOnAction: !0, pauseOnHover: !1, pauseInvisible: !0, useCSS: !0, touch: !0, video: !1, controlNav: !0, directionNav: !0, prevText: "", nextText: "", keyboard: !0, multipleKeyboard: !1, mousewheel: !1, pausePlay: !1, pauseText: "Pause", playText: "Play", controlsContainer: "", manualControls: "", customDirectionNav: "", sync: "", asNavFor: "", itemWidth: 0, itemMargin: 0, minItems: 1, maxItems: 0, move: 0, allowOneSlide: !0, start: function (){ }, before: function (){ }, after: function (){ }, end: function (){ }, added: function (){ }, removed: function (){ }, init: function (){ }}; n.fn.flexslider=function (t){ if(t===undefined&&(t={}), typeof t=="object") return this.each(function (){ var i=n(this), u=t.selector ? t.selector:".slides > li", r=i.find(u); r.length===1&&t.allowOneSlide===!0||r.length===0 ? (r.fadeIn(400), t.start&&t.start(i)):i.data("flexslider")===undefined&&new n.flexslider(this, t) });var i=n(this).data("flexslider"); switch (t){ case "play": i.play(); break; case "pause": i.pause(); break; case "stop": i.stop(); break; case "next": i.flexAnimate(i.getTarget("next"), !0); break; case "prev": case "previous": i.flexAnimate(i.getTarget("prev"), !0); break; default: typeof t=="number"&&i.flexAnimate(t, !0) }} })(jQuery);
(function(window, document){
'use strict';
var supportedBrowser=false,
loaded=false;
if(document.querySelector){
if(window.addEventListener){
supportedBrowser=true;
}}
window.wp=window.wp||{};
if(!! window.wp.receiveEmbedMessage){
return;
}
window.wp.receiveEmbedMessage=function(e){
var data=e.data;
if(! data){
return;
}
if(!(data.secret||data.message||data.value)){
return;
}
if(/[^a-zA-Z0-9]/.test(data.secret)){
return;
}
var iframes=document.querySelectorAll('iframe[data-secret="' + data.secret + '"]'),
blockquotes=document.querySelectorAll('blockquote[data-secret="' + data.secret + '"]'),
i, source, height, sourceURL, targetURL;
for(i=0; i < blockquotes.length; i++){
blockquotes[ i ].style.display='none';
}
for(i=0; i < iframes.length; i++){
source=iframes[ i ];
if(e.source!==source.contentWindow){
continue;
}
source.removeAttribute('style');
if('height'===data.message){
height=parseInt(data.value, 10);
if(height > 1000){
height=1000;
}else if(~~height < 200){
height=200;
}
source.height=height;
}
if('link'===data.message){
sourceURL=document.createElement('a');
targetURL=document.createElement('a');
sourceURL.href=source.getAttribute('src');
targetURL.href=data.value;
if(targetURL.host===sourceURL.host){
if(document.activeElement===source){
window.top.location.href=data.value;
}}
}}
};
function onLoad(){
if(loaded){
return;
}
loaded=true;
var isIE10=-1!==navigator.appVersion.indexOf('MSIE 10'),
isIE11 = !!navigator.userAgent.match(/Trident.*rv:11\./),
iframes=document.querySelectorAll('iframe.wp-embedded-content'),
iframeClone, i, source, secret;
for(i=0; i < iframes.length; i++){
source=iframes[ i ];
if(! source.getAttribute('data-secret')){
secret=Math.random().toString(36).substr(2, 10);
source.src +='#?secret=' + secret;
source.setAttribute('data-secret', secret);
}
if(( isIE10||isIE11)){
iframeClone=source.cloneNode(true);
iframeClone.removeAttribute('security');
source.parentNode.replaceChild(iframeClone, source);
}}
}
if(supportedBrowser){
window.addEventListener('message', window.wp.receiveEmbedMessage, false);
document.addEventListener('DOMContentLoaded', onLoad, false);
window.addEventListener('load', onLoad, false);
}})(window, document);